package com.freedom.admin.infrastructure.persistence.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.freedom.admin.infrastructure.persistence.pojo.po.SysDeptPO;
import com.freedom.admin.infrastructure.persistence.pojo.query.DeptQuery;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


@Mapper
public interface SysDeptMapper extends BaseMapper<SysDeptPO> {

    List<SysDeptPO> selectDeptList(@Param("queryParam") DeptQuery queryParam);

    SysDeptPO selectDeptById(Integer deptId);

    boolean updateDeptById(SysDeptPO sysDeptPO);

    boolean insertDept(SysDeptPO sysDeptPO);

    boolean deleteByIds(@Param("ids") List<Integer> ids);
}
